﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace BusinessClass.Business.ConfigEntity
{
    public class ImgCuttingConfig
    {
        [JsonProperty("name")]
        public string SaveName { get; set; }
        [JsonProperty("w")]
        public int Width { get; set; }
        [JsonProperty("h")]
        public int Height { get; set; }

        public static ImgCuttingConfig FromJson(string json)
        {
            return JsonConvert.DeserializeObject<ImgCuttingConfig>(json);
        }
    }
}
